package cn.candy;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 启动类
 */
//声明当前类是一个SpringBoot项目的启动类：复合注解：@EnableAutoConfiguration + @ComponentScan
@SpringBootApplication
@MapperScan("cn.candy.*.mapper") //扫描mapper接口
public class PetHomeApplication {

    public static void main(String[] args) {
        //使用SpringBoot项目的启动类  去启动一个Spring应用
        SpringApplication.run(PetHomeApplication.class,args);
    }
}
